/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * SearchContactGUI.java
 *
 * Created on Jun 18, 2009, 6:39:11 AM
 */

package GUI;

import BUS.ContactBUS;
import BUS.ContactFunction;
import BUS.ContactGroupBUS;
import DTO.ContactDTO;
import DTO.ContactGroupDTO;
import UTIL.ConvertString;
import java.io.UnsupportedEncodingException;
import java.util.ArrayList;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author trquanglong
 */
public class SearchContactGUI extends javax.swing.JDialog {

    /** Creates new form SearchContactGUI */
    public SearchContactGUI(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
        this.setTitle("Search");

        /**
         * Add item into comboboxs
         */
        /*Combo cmbGroup*/
        cmbGroup.removeAllItems();
        ArrayList<ContactGroupDTO> lstGroup = ContactGroupBUS.getListContactGroup();
        for (int i = 0; i < lstGroup.size(); i++)
            cmbGroup.addItem(lstGroup.get(i).getNameGroup());

        /*Combo cmbLocation*/
        cmbLocation.removeAllItems();
        ArrayList<String> lstLocation = ContactBUS.getListLocation();
        for (int i = 0; i < lstLocation.size(); i++)
            cmbLocation.addItem(lstLocation.get(i));

        /*Combo cmbCompany*/
        cmbCompany.removeAllItems();
        ArrayList<String> lstCompany = ContactBUS.getListCompany();
        for (int i = 0; i < lstCompany.size(); i++)
            cmbCompany.addItem(lstCompany.get(i));



    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        checkName = new javax.swing.JCheckBox();
        checkEmail = new javax.swing.JCheckBox();
        checkCompany = new javax.swing.JCheckBox();
        checkCountry = new javax.swing.JCheckBox();
        checkMobile = new javax.swing.JCheckBox();
        checkHomeP = new javax.swing.JCheckBox();
        checkBusinessP = new javax.swing.JCheckBox();
        checkFax = new javax.swing.JCheckBox();
        txtName = new javax.swing.JTextField();
        txtEmail = new javax.swing.JTextField();
        txtFax = new javax.swing.JTextField();
        txtBusinessPhone = new javax.swing.JTextField();
        txtHomePhone = new javax.swing.JTextField();
        txtMobile = new javax.swing.JTextField();
        bttnSearch = new javax.swing.JButton();
        bttnCancel = new javax.swing.JButton();
        cmbCompany = new javax.swing.JComboBox();
        cmbLocation = new javax.swing.JComboBox();
        checkGroup = new javax.swing.JCheckBox();
        cmbGroup = new javax.swing.JComboBox();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblContact = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        checkName.setText("Name");
        checkName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkNameActionPerformed(evt);
            }
        });

        checkEmail.setText("Email");
        checkEmail.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkEmailActionPerformed(evt);
            }
        });

        checkCompany.setText("Organization");
        checkCompany.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkCompanyActionPerformed(evt);
            }
        });

        checkCountry.setText("Country");
        checkCountry.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkCountryActionPerformed(evt);
            }
        });

        checkMobile.setText("Mobile");
        checkMobile.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkMobileActionPerformed(evt);
            }
        });

        checkHomeP.setText("Home Phone");
        checkHomeP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkHomePActionPerformed(evt);
            }
        });

        checkBusinessP.setText("Business Phone");
        checkBusinessP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkBusinessPActionPerformed(evt);
            }
        });

        checkFax.setText("Fax");
        checkFax.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkFaxActionPerformed(evt);
            }
        });

        txtName.setEditable(false);

        txtEmail.setEditable(false);

        txtFax.setEditable(false);

        txtBusinessPhone.setEditable(false);

        txtHomePhone.setEditable(false);

        txtMobile.setEditable(false);

        bttnSearch.setText("SEARCH");
        bttnSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bttnSearchActionPerformed(evt);
            }
        });

        bttnCancel.setText("CANCEL");
        bttnCancel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bttnCancelActionPerformed(evt);
            }
        });

        cmbCompany.setEnabled(false);

        cmbLocation.setEnabled(false);

        checkGroup.setText("Group");
        checkGroup.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                checkGroupActionPerformed(evt);
            }
        });

        cmbGroup.setEnabled(false);

        tblContact.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {},
                {},
                {},
                {}
            },
            new String [] {

            }
        ));
        jScrollPane1.setViewportView(tblContact);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 682, Short.MAX_VALUE)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 468, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(checkGroup)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(checkName)
                            .addComponent(checkEmail)
                            .addComponent(checkCompany)
                            .addComponent(checkCountry))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(cmbGroup, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(cmbLocation, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(txtName, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)
                            .addComponent(txtEmail, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 180, Short.MAX_VALUE)
                            .addComponent(cmbCompany, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(50, 50, 50)))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(checkMobile)
                    .addComponent(checkBusinessP)
                    .addComponent(checkHomeP)
                    .addComponent(checkFax))
                .addGap(16, 16, 16)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(bttnSearch, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(bttnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 87, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(txtBusinessPhone, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtHomePhone, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(txtMobile, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addComponent(txtFax, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(52, 52, 52))
            .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap(11, Short.MAX_VALUE)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkName)
                            .addComponent(txtName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkEmail)
                            .addComponent(txtEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkCompany)
                            .addComponent(cmbCompany, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkCountry)
                            .addComponent(cmbLocation, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(checkFax)
                            .addComponent(txtFax, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGap(31, 31, 31)
                                .addComponent(checkHomeP))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(checkMobile)
                                    .addComponent(txtMobile, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(txtHomePhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(checkBusinessP)
                            .addComponent(txtBusinessPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(bttnCancel, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addComponent(bttnSearch, javax.swing.GroupLayout.PREFERRED_SIZE, 31, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addComponent(checkGroup)
                    .addComponent(cmbGroup, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void checkNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkNameActionPerformed
        // TODO add your handling code here:
        if (checkName.isSelected())
            txtName.setEditable(true);
        else
            txtName.setEditable(false);

    }//GEN-LAST:event_checkNameActionPerformed

    private void checkEmailActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkEmailActionPerformed
        // TODO add your handling code here:
       if (checkEmail.isSelected())
            txtEmail.setEditable(true);
        else
            txtEmail.setEditable(false);
    }//GEN-LAST:event_checkEmailActionPerformed

    private void checkCompanyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkCompanyActionPerformed
        // TODO add your handling code here:
        if (checkCompany.isSelected()){
            //cmbCompany.setEditable(true);
            cmbCompany.setEnabled(true);
        }
        else
        {
            //cmbCompany.setEditable(false);
            cmbCompany.setEnabled(false);
        }
    }//GEN-LAST:event_checkCompanyActionPerformed

    private void checkCountryActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkCountryActionPerformed
        // TODO add your handling code here:
        if (checkCountry.isSelected()){
            //cmbLocation.setEditable(true);
            cmbLocation.setEnabled(true);
        }
        else{
            //cmbLocation.setEditable(false);
            cmbLocation.setEnabled(false);
        }
    }//GEN-LAST:event_checkCountryActionPerformed

    private void checkMobileActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkMobileActionPerformed
        // TODO add your handling code here:
        if (checkMobile.isSelected())
            txtMobile.setEditable(true);
        else
            txtMobile.setEditable(false);
    }//GEN-LAST:event_checkMobileActionPerformed

    private void checkHomePActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkHomePActionPerformed
        // TODO add your handling code here:
        if (checkHomeP.isSelected())
            txtHomePhone.setEditable(true);
        else
            txtHomePhone.setEditable(false);
    }//GEN-LAST:event_checkHomePActionPerformed

    private void checkBusinessPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkBusinessPActionPerformed
        // TODO add your handling code here:
         if (checkBusinessP.isSelected())
            txtBusinessPhone.setEditable(true);
        else
            txtBusinessPhone.setEditable(false);
    }//GEN-LAST:event_checkBusinessPActionPerformed

    private void checkFaxActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkFaxActionPerformed
        // TODO add your handling code here:
         if (checkFax.isSelected())
            txtFax.setEditable(true);
        else
            txtFax.setEditable(false);
    }//GEN-LAST:event_checkFaxActionPerformed

    private void checkGroupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_checkGroupActionPerformed
        // TODO add your handling code here:
        if (checkGroup.isSelected()){
            //cmbGroup.setEditable(true);
            cmbGroup.setEnabled(true);
        }
        else{
            //cmbGroup.setEditable(false);
            cmbGroup.setEnabled(false);
        }

    }//GEN-LAST:event_checkGroupActionPerformed

    /**
     * Click button Search
     * @param evt
     */
    private void bttnSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bttnSearchActionPerformed
        try {
            // TODO add your handling code here:
            String strSQL = "Select * From Contacts Where 1 = 1";
            if (checkName.isSelected()) {
                strSQL += " and Name = '" + ConvertString.ConvertString2UTF8(txtName.getText()) + "'";
            }
            if (checkFax.isSelected()) {
                strSQL += " and Fax = '" + ConvertString.ConvertString2UTF8(txtFax.getText()) + "'";
            }
            if (checkBusinessP.isSelected()){
                strSQL += " and BusinessPhone = '" + ConvertString.ConvertString2UTF8(txtBusinessPhone.getText()) + "'";
            }
            if (checkHomeP.isSelected()){
                strSQL += " and HomePhone = '" + ConvertString.ConvertString2UTF8(txtHomePhone.getText()) + "'";
            }
            if (checkEmail.isSelected()){
                strSQL += " and Email = '" + ConvertString.ConvertString2UTF8(txtEmail.getText()) + "'";
            }
            if (checkMobile.isSelected()){
                strSQL += " and Mobile = '" + ConvertString.ConvertString2UTF8(txtMobile.getText()) + "'";
            }

            if (checkGroup.isSelected()){
                int idGroup = ContactGroupBUS.getIDGroup(cmbGroup.getSelectedItem().toString());
                strSQL += " and IDGroup = " + Integer.toString(idGroup);
            }
            if (checkCompany.isSelected()){
                strSQL += " and Organization = '" + ConvertString.ConvertString2UTF8(cmbCompany.getSelectedItem().toString()) + "'";
            }
            if (checkCountry.isSelected()){
                strSQL += " and Country = '" + ConvertString.ConvertString2UTF8(cmbLocation.getSelectedItem().toString()) + "'";
            }

            ArrayList<ContactDTO> lstContact = ContactBUS.getListContact(strSQL);
            ContactFunction.showTableAllContacts(tblContact, lstContact);
            
        } catch (UnsupportedEncodingException ex) {
            Logger.getLogger(SearchContactGUI.class.getName()).log(Level.SEVERE, null, ex);
        }



    }//GEN-LAST:event_bttnSearchActionPerformed

    /**
     * Click button Cancel
     * @param evt
     */
    private void bttnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bttnCancelActionPerformed
        // TODO add your handling code here:
        this.dispose();
    }//GEN-LAST:event_bttnCancelActionPerformed

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                SearchContactGUI dialog = new SearchContactGUI(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton bttnCancel;
    private javax.swing.JButton bttnSearch;
    private javax.swing.JCheckBox checkBusinessP;
    private javax.swing.JCheckBox checkCompany;
    private javax.swing.JCheckBox checkCountry;
    private javax.swing.JCheckBox checkEmail;
    private javax.swing.JCheckBox checkFax;
    private javax.swing.JCheckBox checkGroup;
    private javax.swing.JCheckBox checkHomeP;
    private javax.swing.JCheckBox checkMobile;
    private javax.swing.JCheckBox checkName;
    private javax.swing.JComboBox cmbCompany;
    private javax.swing.JComboBox cmbGroup;
    private javax.swing.JComboBox cmbLocation;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JTable tblContact;
    private javax.swing.JTextField txtBusinessPhone;
    private javax.swing.JTextField txtEmail;
    private javax.swing.JTextField txtFax;
    private javax.swing.JTextField txtHomePhone;
    private javax.swing.JTextField txtMobile;
    private javax.swing.JTextField txtName;
    // End of variables declaration//GEN-END:variables

}
